// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Item {
    width: 273
    height: 386

    signal changeMoney(int size)

    Image{
        anchors.fill: parent
        fillMode: Image.Center
        source: "images/ui/bank_panel.png"

        Coin {
            x: 182
            y: 64
            value: 15
            onIncrement: changeMoney(size)
        }
        Coin {
            x: 19
            y: 158
            value: 20
            onIncrement: changeMoney(size)
        }
        Coin {
            x: 101
            y: 64
            value: 10
            onIncrement: changeMoney(size)
        }

        Coin {
            x: 96
            y: 158
            value: 25
            onIncrement: changeMoney(size)
        }
        Coin {
            x: 20
            y: 64
            onIncrement: changeMoney(size)
        }

        Bank {
            id: bank
            x: 16
            y: 264

        }

        BankLabel {
            id: banklabel1
            x: 118
            y: 264


        } Text {
            id: bm_text
            x: 139
            y: 310
            width: 110
            height: 21
            text: "---"
            color: "#ffffff"
            font.bold: true
            horizontalAlignment: Text.AlignLeft
            font.pixelSize: 17
        }
    }
    function setLabel(value){
        bank.setValue(value);
    }
    function setBankMoney(value){
        bm_text.text = value;
    }


}
